package com.loong.experiment02.config;

import org.springframework.stereotype.Component;

@Component
public class MyComponent {

    private String name;

    public MyComponent() {
        // 默认构造函数
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "MyComponent{name='" + name + "'}";
    }
}
